package org.jeecg.iot.cronJobs;

import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.util.DateUtils;
import org.jeecg.iot.mqttServer.MqttGateWay;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

@Slf4j
public class inspectionJob implements Job {
    @Autowired
    private MqttGateWay mqttGateWay;
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        log.info(String.format(" Jeecg-Boot 普通定时任务 SampleJob !  时间:" + DateUtils.getTimestamp()));
//        mqttGateWay.sendToMqtt("topic/test",0,"123123123123123");
//        mqttGateWay.sendToMqtt("topic/test",0, new byte[]{0x01,0x02});
    }
}
